package com.loan.job.service;

import com.loan.system.service.ApplyService;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 催收人员订单分配
 * @author shiguang on 2022/9/30 10:43
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class OverApplyService {


    private final ApplyService applyService;

    /**
     * 逾期统计
     * @throws Exception
     */
    @XxlJob("saveOrUpdateApplyCollectionBy")
    public void saveOrUpdateApplyCollectionByJobHandle() throws Exception {
        XxlJobHelper.log("run getOperatorHandler.");
        applyService.saveOrUpdateApplyCollectionByJobHandle();
    }

}
